﻿<UserControl x:Class="FunctionPlotter.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:dg="clr-namespace:DynamicGeometry;assembly=LiveGeometryPlayer"
    mc:Ignorable="d"
    d:DesignHeight="364" d:DesignWidth="507">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <TextBlock Text="Enter a function, e.g. sin(x):" VerticalAlignment="Center" />
                <TextBox FontSize="24" x:Name="functionText" Grid.Column="1" Text="" TextChanged="functionText_TextChanged" />
            </Grid>
            <dg:DrawingControl x:Name="graph" Grid.Row="1"></dg:DrawingControl>
            <TextBlock Name="status" Grid.Row="2" Text="" />
        </Grid>
    </Grid>
</UserControl>
